import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
import { DominionId } from "./DominionId";
type int = number;
//class SDominionBattleSituation
    
    export  class SDominionBattleSituation
    {
       

        public __write(arg1: SerializeStream): void
        {
            this.mainActId.__write(arg1);
            this.mainDefId.__write(arg1);
            arg1.writeInt(this.actCombat);
            arg1.writeInt(this.defCombat);
            arg1.writeDate(this.endTime);
            arg1.writeInt(this.result);
            return;
        }

        public __read(arg1: SerializeStream): void
        {
            this.mainActId = new DominionId();
            this.mainActId.__read(arg1);
            this.mainDefId = new DominionId();
            this.mainDefId.__read(arg1);
            this.actCombat = arg1.readInt();
            this.defCombat = arg1.readInt();
            this.endTime = arg1.readDate();
            this.result = arg1.readInt();
            return;
        }

        public /* var */mainActId: DominionId;

        public /* var */mainDefId: DominionId;

        public /* var */actCombat: int;

        public /* var */defCombat: int;

        public /* var */endTime: Date;

        public /* var */result: int;
    }
